home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 5
/
Apprentice-Release5.iso
/
Source Code
/
C
/
Frameworks
/
Grant's CGI Framework 1.0b14
/
Interface
/
Menus
/
MenuFunc.h
< prev
Wrap
C/C++ Source or Header
|
1996-04-08
|
1KB
|
72 lines
#pragma once
/*****
*
* menuFunc.h
*
* This is a support file for "Grant's CGI Framework".
* Please see the license agreement that accompanies the distribution package
* for licensing details.
*
* Copyright ©1995,1996 by Grant Neufeld
* grant@acm.com
* http://arpp.carleton.ca/grant/
*
*****/
#include "MyConfiguration.h"
#if kCompileWithForeground
/*** CONSTANT DECLARATIONS ***/
#define kmMenuBarID 128 /* resource ID of the main application menubar */
#define kmDefaultMenuStr 299
#define kmTheWholeMenu 0
#define kmAfterOtherMenus 0
#define kmSubMenu -1
#define kmAppleMenuID 128
#define kmFileMenuID 129
#define kmEditMenuID 130
/*** GLOBAL DECLARATIONS ***/
#ifdef __MainSegment__
#ifdef _GLOBAL_
#undef _GLOBAL_
#endif
#define _GLOBAL_
#else
#ifdef _GLOBAL_
#undef _GLOBAL_
#endif
#define _GLOBAL_ extern
#endif
_GLOBAL_ MenuHandle gmAppleMenu;
_GLOBAL_ MenuHandle gmFileMenu;
_GLOBAL_ MenuHandle gmEditMenu;
#ifdef _GLOBAL_
#undef _GLOBAL_
#endif
/*** FUNCTION PROTOTYPES ***/
void adjustMenus ( void );
void doMenu ( long, short ); /* menuResult, modifiers */
#else /* if not kCompileWithForeground */
/* no interface, so define the menu functions to be nothing */
#define adjustMenus()
#define doMenu(a,b)
#endif /* kCompileWithForeground */
/***** EOF *****/